/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2024-01-11 10:15:49
 * @LastEditors: sueRimn
 * @LastEditTime: 2024-01-23 10:24:50
 */
import http from "@/utils/http";

/*******《《达人列表》》********************************************************************************* */

/**
 * @description: 达人列表
 * @param {*} data
 */
export const talentList = (data) => {
  return http({
    url: "/backend/TalentUser/getList",
    method: "GET",
    params: data,
  });
};

/**
 * @description: 达人详情
 * @param {*} data
 */
export const talentDetail = (data) => {
  return http({
    url: "/backend/TalentUser/getInfo",
    method: "GET",
    params: data,
  });
};

/**
 * @description: 达人冻结/解冻
 * @param {*} data
 */
export const talentFreeze = (data) => {
  return http({
    url: "/backend/TalentUser/freeze",
    method: "POST",
    data,
  });
};

/**
 * @description: 删除达人
 * @param {*} data
 */
export const talentDel = (data) => {
  return http({
    url: "/backend/TalentUser/delTalentUser",
    method: "POST",
    data,
  });
};

/**
 * @description: 添加达人（添加前先查询人员是否有对应的技能）
 * @param {*} data
 */
export const talentAdd = (data) => {
  return http({
    url: "/backend/Talent/adds",
    method: "POST",
    data,
  });
};

/**
 * @description: 查询该人员是否有对应的技能
 * @param {*} data
 */
export const checkUserSkill = (data) => {
  return http({
    url: "/backend/Talent/checkUserSkill",
    method: "POST",
    data,
  });
};

/**
 * @description: 删除达人的技能
 * @param {*} data
 */
export const delTalentSkill = (data) => {
  return http({
    url: "/backend/TalentUser/delTalentUserSkill",
    method: "POST",
    data,
  });
};

/*******《《技能管理》》********************************************************************************* */

/**
 * @description: 技能删除
 * @param {*} data
 */
export const skillDel = (data) => {
  return http({
    url: "/backend/TalentSkill/del",
    method: "POST",
    data,
  });
};

/**
 * @description: 管理技能列表
 * @param {*} data
 */
export const skillList = (data) => {
  return http({
    url: "/backend/TalentSkill/index",
    method: "GET",
    params: data,
  });
};

/**
 * @description: 管理技能编辑
 * @param {*} data
 */
export const skillEdit = (data) => {
  return http({
    url: "/backend/TalentSkill/update",
    method: "POST",
    data,
  });
};

/**
 * @description: 管理技能创建
 * @param {*} data
 */
export const skillAdd = (data) => {
  return http({
    url: "/backend/TalentSkill/add",
    method: "POST",
    data,
  });
};

/*******《《达人申请审核》》********************************************************************************* */

/**
 * @description: 达人审核列表
 * @param {*} data
 */
export const talentReviewList = (data) => {
  return http({
    url: "/backend/Talent/getReviewList",
    method: "GET",
    params: data,
  });
};

/**
 * @description: 达人审核详情
 * @param {*} data
 */
export const talentReviewDetail = (data) => {
  return http({
    url: "/backend/Talent/getInfo",
    method: "GET",
    params: data,
  });
};

/**
 * @description: 达人审核
 * @param {*} data
 */
export const talentReview = (data) => {
  return http({
    url: "/backend/Talent/review",
    method: "POST",
    data,
  });
};

/**
 * @description: 达人审核删除
 * @param {*} data
 */
export const delTalentReview = (data) => {
  return http({
    url: "/backend/Talent/del",
    method: "POST",
    data,
  });
};

/*******《《达人活动审核》》********************************************************************************* */

/**
 * @description: 达人活动列表
 * @param {*} data
 */
export const talentActivityList = (data) => {
  return http({
    url: "/backend/TalentActivity/getTalentActiveReviewList",
    method: "GET",
    params: data,
  });
};

/**
 * @description: 达人活动审核
 * @param {*} data
 */
export const TalentActivityReview = (data) => {
  return http({
    url: "/backend/TalentActivity/review",
    method: "POST",
    data,
  });
};

/**
 * @description: 达人活动详情
 * @param {*} data
 */
export const talentActivityDetail = (data) => {
  return http({
    url: "/backend/TalentActivity/getTalentActiveReviewList",
    method: "GET",
    params: data,
  });
};
/**
 * @description: 达人赋分-固定5000分
 * @param {*} data
 */
export const assignPoints = (data) => {
  return http({
    url: "/backend/TalentUser/assignPoints",
    method: "POST",
    data,
  });
};